/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.resource.dao;

import com.lczyfz.istep.common.persistence.CrudDao;
import com.lczyfz.istep.common.persistence.annotation.MyBatisDao;
import com.lczyfz.istep.modules.resource.entity.ResourceCourse;
import com.lczyfz.istep.modules.resource.entity.ResourceCtfSet;
import com.lczyfz.istep.modules.resource.entity.ResourcePaper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * CTF题目集管理DAO接口
 * @author dh
 * @version 2017-01-16
 */
@MyBatisDao
public interface ResourceCtfSetDao extends CrudDao<ResourceCtfSet> {
//fds
    //添加下发-根据培训方案id获取CTF题目集
    List<ResourceCtfSet> findCtfSetById(@Param("trainProgramId")String trainProgramId,@Param("DEL_FLAG_NORMAL")String DEL_FLAG_NORMAL);

    //根据培训方案id查询CTF题目集列表
    List<ResourceCtfSet> findPageByTrainprogramId(ResourceCtfSet resourceCtfSet);

    //我的CTF-CTF题目集列表展示
    List<ResourceCtfSet> stuCtfSetList(ResourceCtfSet resourceCtfSet);

    //我的学习任务-获取CTF题目集名称
    List<ResourceCtfSet> stuLearnCtfSet(@Param("distributeId")String distributeId, @Param("userId")String userId, @Param("DEL_FLAG_NORMAL")String DEL_FLAG_NORMAL);

    ResourceCtfSet findCtfSetByCtfSetName(ResourceCtfSet resourceCtfSet);
}